package com.ipartek.desarrollo.acciones;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ipartek.desarrollo.bean.Abonos;
import com.ipartek.desarrollo.dao.AbonosDAO;

/**
 * Servlet implementation class MostrarAbonos
 */
public class MostrarAbonos extends Accion {

	@Override
	public String ejecutar(HttpServletRequest request,
			HttpServletResponse response) {

		// Codigo con Hibernate
		AbonosDAO abonosDAO = new AbonosDAO();
		List<Abonos> abonos = abonosDAO.ListarAbonos();

		request.setAttribute("abonos", abonos);
		return "mostrarAbonos.jsp";
	}

}
